'use strict';

const Controller  = require('egg').Controller ;

class Api extends Controller {
  async index (){
    const { ctx,service } = this;
    //调用Service 进行业务处理
    const userData = await service.api.find();
    ctx.body = userData;
    ctx.status = 201;
  }
}

module.exports = Api;